package data;

import java.io.Serializable;

public class SaleItem implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 11L;
	private String goodsID;
	private String description;
	private double price;
	private double specialOffer;
	private int amount;

	public String getGoodsID() {
		return goodsID;
	}

	public void setGoodsID(String goodsID) {
		this.goodsID = goodsID;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getSpecialOffer() {
		return specialOffer;
	}

	public void setSpecialOffer(double specialOffer) {
		this.specialOffer = specialOffer;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public void setInfo(Goods goods, int amount) {
		this.goodsID = goods.getId();
		this.description = goods.getDescription();
		this.price = goods.getPrice();
		this.amount = amount;
	}
}
